{*
   Smarty Custom Firefox console log Debug Template
   @author Aleksandar Pavic
   @since 02/13/2006 Smarty 2.6.12
   @package Smarty
   @filename debug.tpl
*}

{assign_debug_info}

<SCRIPT language="javascript">
{* Create node for template includes *}
   console.log("included templates & config files (load time in seconds):");
   {section name=templates loop=$_debug_tpls}
      console.log("{section name=indent loop=$_debug_tpls[templates].depth}  {/section}{$_debug_tpls[templates].filename|escape:html|escape:javascript} {if isset($_debug_tpls[templates].exec_time)}({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}{/if}");
   {sectionelse}
      console.log("no templates included");   
   {/section}
      console.log("---------------------------------------------------------------------------");

   console.log(" user debug variables:");
{* Create child nodes for user debug variables *}
   {section name=vars loop=$_user_debug}
   console.log("{ldelim}${$_user_debug_key[vars]}{rdelim} {$_user_debug[vars]|@debug_print_var:0:1000|escape:javascript|escape:javascript}' );");
   {sectionelse}
   console.log("No User Debug Information assigned");
    {/section}

    console.log("---------------------------------------------------------------------------");

{* Create node for template variables *}
   console.log("assigned template variables:");
{* Create child nodes for template variables *}
    {section name=vars loop=$_debug_keys}
        {if $_debug_keys[vars] != '_user_debug' && $_debug_keys[vars] != '_user_debug_key' }
   console.log(" ${$_debug_keys[vars]} {$_debug_vals[vars]|@debug_print_var:0:1000|escape:javascript|escape:javascript} );");
        {/if}
    {sectionelse}
   console.log("No template variables assigned");
    {/section}
   
console.log("---------------------------------------------------------------------------");
{* Create node for smarty config file variables *}
   console.log("assigned config file variables (outer template scope):");

{* Create child nodes for smarty config file variables *}
    {section name=config_vars loop=$_debug_config_keys}
    console.log("{ldelim}${$_debug_config_keys[config_vars]}{rdelim} {$_debug_config_vals[config_vars]|@debug_print_var:0:1000|escape:javascript|escape:javascript}' );");
    {sectionelse}
    console.log("No config variables assigned");
    {/section}
</SCRIPT> 